package com.gxgeek.javabasic.base.valuepassed;

/**
 * Created by Administrator on 2017/7/9.
 */
public class Test {

    static {
        int x = 5;
    }
    static int x,y;

    public static void main(String[] args) {
        x--;
        myMethod();
        System.out.println(x);
        System.out.println(y);
        System.out.println( x+y + ++x);
    }

    public static void myMethod(){
        y=x++ + ++x;
        System.out.println(y);
    }

}
